package com.ruoyi.enterStock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销货单入库 实体类
 * @author WangChangShuo
 * @date 2022年09月26日 17:49
 */
public class EnterStockOrder extends BaseEntity {

    /**
     * 销货单入库表主键
     */
    private Long enterStockId;
    /**
     * 采购订单入库主键
     */
    private Long procurementWarehousingId;
    /**
     * 销货单主键
     */
    private Long saleGoodsId;

    /**
     * 订单日期
     */ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date procurementWarehousingDate;

    /**
     * 订单编号
     */
    private String procurementWarehousingName;

    /**
     * 供应商主键
     */
    private Long supplierId;

    /**
     * 业务员主键
     */
    private Long userId;
    /**
     * 业务员名称
     */
    private String userName;

    /**
     * 公司主键
     */
    private Long deptId;

    /**
     * 订单金额
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal purchaseAmount;

    /**
     * 订单金额(含税)
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private BigDecimal taxAmount;

    public Long getEnterStockId() {
        return enterStockId;
    }

    public void setEnterStockId(Long enterStockId) {
        this.enterStockId = enterStockId;
    }

    public Long getProcurementWarehousingId() {
        return procurementWarehousingId;
    }

    public void setProcurementWarehousingId(Long procurementWarehousingId) {
        this.procurementWarehousingId = procurementWarehousingId;
    }

    public Long getSaleGoodsId() {
        return saleGoodsId;
    }

    public void setSaleGoodsId(Long saleGoodsId) {
        this.saleGoodsId = saleGoodsId;
    }

    public Date getProcurementWarehousingDate() {
        return procurementWarehousingDate;
    }

    public void setProcurementWarehousingDate(Date procurementWarehousingDate) {
        this.procurementWarehousingDate = procurementWarehousingDate;
    }

    public String getProcurementWarehousingName() {
        return procurementWarehousingName;
    }

    public void setProcurementWarehousingName(String procurementWarehousingName) {
        this.procurementWarehousingName = procurementWarehousingName;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public BigDecimal getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(BigDecimal purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }
}
